Program to count number of odd and even in an array